<template>
    <view @click="onTap" class="container">
        <view class="comment-container">
            <text class="ex-tag1"
                >不会画画的程序员<slot name="after">+12</slot>
            </text>

            <text class="ex-tag2">做黑客 <slot name="after">+12</slot></text>
            <text>黑客 <slot name="after">+12</slot></text>

            <text>比如我学计算机<slot name="after">+12</slot></text>
        </view>
    </view>
</template>

<script>
export default {
    Component: ({
        options: {
            multipleSlots: true
        },
        externalClasses: ['tag-class'],
    }),
    name: "tag",
    data () {
        return {

        };
    },

    methods: {

    },
}
</script>

<style lang="scss">
.container {
    padding: 4rpx 12rpx;
    // background-color: #f5f5f5;
    color: #666666;
    border-radius: 2px;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    font-size: 28rpx;
    margin-right: 15rpx;
    margin-bottom: 10rpx;
}

.comment-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.ex-tag1 {
    background-color: #f5f5f5 ;
    margin-right: 10px;
    margin-bottom: 10px;
}

.ex-tag2 {
    background-color: #f5f5f5;
    margin-right: 10px;
}
</style>
